package grape.sequence.rest.config.mapper;

import grape.sequence.service.config.po.Config;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.sequence.rest.config.form.ConfigCreateForm;
import grape.sequence.rest.config.form.ConfigUpdateForm;
import grape.sequence.rest.config.form.ConfigListPageForm;
import grape.sequence.rest.config.vo.ConfigVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 序列生成配置表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-08-20
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ConfigWebMapper extends WebMapper<ConfigVo, Config> {

    Config formToPo(ConfigCreateForm f);
    Config formToPo(ConfigUpdateForm f);
    Config formToPo(ConfigListPageForm f);
}
